package com.samuel.learning.design.pattern.strategy.pay;

import com.samuel.learning.design.pattern.strategy.pay.impl.AliPayment;
import com.samuel.learning.design.pattern.strategy.pay.impl.JDPayment;
import com.samuel.learning.design.pattern.strategy.pay.impl.WXPayment;

public enum PayTypeEnum {
    AliPay(new AliPayment()),JDPay(new JDPayment()),WXPay(new WXPayment());

    private PaymentI payment;

    PayTypeEnum(PaymentI payment) {
        this.payment = payment;
    }

    public PaymentI getPayMent(){
        return this.payment;
    }
}
